/*
*    Phantom v2.0 GUI Automation Software
*    Copyright (C) 2009  John C. Van Arsdall (john@phantomtest.com)
*
*    This program is free software; you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation; either version 2 of the License, or
*    (at your option) any later version.
*
*    This program is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License along
*    with this program; if not, write to the Free Software Foundation, Inc.,
*    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
// DataString.h: interface for the CDataString class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DATASTRING_H__ED358C8A_C7AE_4C48_9149_372BB25F49A3__INCLUDED_)
#define AFX_DATASTRING_H__ED358C8A_C7AE_4C48_9149_372BB25F49A3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ssi_data.h"
#include "ssi_string.h"	// Added by ClassView

class SSI_SCRIPTDLL_API CDataString : public CData  
{
public:
	void MakeFormatted();
	void MakeRaw();
	SSI_INT64 SizeOf();
	String GetString();
	SSI_BOOL DataFromString(const String& sData);
	CDataString();
	virtual ~CDataString();
	virtual SSI_BOOL boolean(){if(Data != ""){return 1;}else{return 0;}};
	virtual CData* MakeData(void){return (CData*) new CDataString;};
	String Data;
private:
  SSI_BOOL CopyData(CData* Other);
	static SSI_INT64 sType;
public:
	virtual SSI_INT64 Register(SSI_INT64 NewType);
	virtual void UnRegister();
	static SSI_INT64 GetRegisteredType(void);
	virtual CData* operator_plus(CData* InData, OpInfoT* Info = SSI_NULL);
	virtual CData* operator_equal(CData* InData, OpInfoT* Info = SSI_NULL);
	virtual CStatus operator_compare(CData* InData, SSI_INT64& Result);
};

#endif // !defined(AFX_DATASTRING_H__ED358C8A_C7AE_4C48_9149_372BB25F49A3__INCLUDED_)



